package org.mct.mes.entity;

import org.springframework.data.annotation.Id;
import org.springframework.data.relational.core.mapping.Column;
import org.springframework.data.relational.core.mapping.Table;

import java.time.OffsetDateTime;

@Table(name = "mes_heart_beat")
public class MesHeartBeat {

    @Column(value = "device_code")
    public String deviceCode;


    @Column(value = "unit_no")
    public Integer id;

    @Column(value = "code")
    public Integer code;

    @Column(value = "insert_time")
    public OffsetDateTime insertTime;

    @Column(value = "ip")
    public String ip;

    @Column(value = "status")
    public String status;

    @Column(value = "update_time")
    public OffsetDateTime updateTime;

    public String getDeviceCode() {
        return deviceCode;
    }

    public void setDeviceCode(String deviceCode) {
        this.deviceCode = deviceCode;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public OffsetDateTime getInsertTime() {
        return insertTime;
    }

    public void setInsertTime(OffsetDateTime insertTime) {
        this.insertTime = insertTime;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public OffsetDateTime getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(OffsetDateTime updateTime) {
        this.updateTime = updateTime;
    }

}